package com.ll19.thread.test.demo2;

/**
 * 
 * Runnable定义的子类中没有start()方法，只有Thread类中才有。此时观察Thread类，有一个构造方法：public
 * Thread(Runnable targer) 　　此构造方法接受Runnable的子类实例，也就是说可以通过Thread类来启动Runnable实现的多线程。（start()可以协调系统的资源）:
 * 
 * 
 * 
 * @author liukai
 * 
 */
public class ThreadDemo02 {

	public static void main(String[] args) {
		MyThreadRunnable mt1 = new MyThreadRunnable("线程a");
		MyThreadRunnable mt2 = new MyThreadRunnable("线程b");
		new Thread(mt1).start();
		new Thread(mt2).start();
	}

}
